Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
@loopback/core
Advanced tools
LoopBack makes it easy to build modern applications that require complex integrations.
$ npm install --save @loopback/core
@loopback/core
provides the foundation for your LoopBack app, but unlike
previous versions, it no longer contains the implementation for listening
servers.
For a typical example of how to create a REST server with your application, see the @loopback/rest package.
Since @loopback/core
is decoupled from the listening server implementation,
LoopBack applications are now able to work with any component that provides this
functionality.
// index.ts
import {Application} from '@loopback/core';
import {RestComponent} from '@loopback/rest';
import {GrpcComponent} from '@loopback/grpc';
const app = new Application({
rest: {
port: 3000,
},
grpc: {
port: 3001,
},
});
app.component(RestComponent); // REST Server
app.component(GrpcComponent)(
// GRPC Server
async function start() {
// Let's retrieve the bound instances of our servers.
const rest = await app.getServer<RestServer>('RestServer');
const grpc = await app.getServer<GrpcServer>('GrpcServer');
// Define all sorts of bindings here to pass configuration or data
// between your server instances, define controllers and datasources for them,
// etc...
await app.start(); // This automatically spins up all your servers, too!
console.log(`REST server running on port: ${rest.getSync('rest.port')}`);
console.log(`GRPC server running on port: ${grpc.getSync('grpc.port')}`);
},
)();
In the above example, having a GRPC server mounted on your Application could enable communication with other GRPC-enabled microservices, allowing things like dynamic configuration updates.
Run npm test
from the root folder.
See all contributors.
MIT
FAQs
Define and implement core constructs such as Application and Component
We found that @loopback/core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.